

<table>
	<tr>
		<th>ID</th><th>Titel</th><th>Beschreibung</th><th>Action</th>
	</tr>
    <?php foreach($bookitems as $bookitem) : ?> 
	<tr>
		<td> 
            <?php echo $bookitem->id; ?>
        </td> 
        <td> 
            <?php echo $bookitem->title; ?>
        </td> 
		<td> 
            <?php echo $bookitem->description; ?>
        </td> 
		<td> 
            <?php echo anchor(base_url().'books/delete/'.$bookitem->id, 'delete'); ?>
			<?php echo anchor(base_url().'books/edit/'.$bookitem->id, 'edit'); ?>
        </td> 
	</tr>
    <?php endforeach; ?> 
</table>

<a href="<?php echo base_url().'books/create' ?>">Neues Item</a>